Telegram Group & Telegram Channel
30. Number pattern 5.

12345
1234
123
12
1
12
123
1234
12345


class NumberPat5
{

public static void main(String arg[])
{

int ck = 0, c = 2;

while (c > 0)
{

if (ck == 0)
{

for (int i = 1, r = 5; i <= 5; i++, r--)
{

for (int j = 1; j <= r; j++)
{

System.out.print(j);

}

System.out.println();

}

ck++;

}
else
{

for (int i = 2; i <= 5; i++)
{

for (int j = 1; j <= i; j++)
{

System.out.print(j);

}

System.out.println();
}
}

c--;
}

}
}

@java_codings



tg-me.com/java_codings/42
Create:
Last Update:

30. Number pattern 5.

12345
1234
123
12
1
12
123
1234
12345


class NumberPat5
{

public static void main(String arg[])
{

int ck = 0, c = 2;

while (c > 0)
{

if (ck == 0)
{

for (int i = 1, r = 5; i <= 5; i++, r--)
{

for (int j = 1; j <= r; j++)
{

System.out.print(j);

}

System.out.println();

}

ck++;

}
else
{

for (int i = 2; i <= 5; i++)
{

for (int j = 1; j <= i; j++)
{

System.out.print(j);

}

System.out.println();
}
}

c--;
}

}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/42

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

That growth environment will include rising inflation and interest rates. Those upward shifts naturally accompany healthy growth periods as the demand for resources, products and services rise. Importantly, the Federal Reserve has laid out the rationale for not interfering with that natural growth transition.It's not exactly a fad, but there is a widespread willingness to pay up for a growth story. Classic fundamental analysis takes a back seat. Even negative earnings are ignored. In fact, positive earnings seem to be a limiting measure, producing the question, "Is that all you've got?" The preference is a vision of untold riches when the exciting story plays out as expected.

Telegram announces Search Filters

With the help of the Search Filters option, users can now filter search results by type. They can do that by using the new tabs: Media, Links, Files and others. Searches can be done based on the particular time period like by typing in the date or even β€œYesterday”. If users type in the name of a person, group, channel or bot, an extra filter will be applied to the searches.

Advance Java ‍ from nl


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA